import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { OrderComponent } from './order/order.component';
import { OrderAddComponent } from './order/order-add/order-add.component';
import { AppRoutingModule } from './app-routing.module';
import { HttpModule } from '@angular/http';
import {OrderService} from './order/order.service';
import {DpDatePickerModule} from 'ng2-date-picker';
import { OrderEditComponent } from './order/order-edit/order-edit.component';
import { LoginComponent } from './login/login.component';
import { NavbarComponent } from './navbar/navbar.component';
import { OrderListComponent } from './order/order-list/order-list.component';
import { MaterialComponent } from './material/material.component';
import { MaterialListComponent } from './material/material-list/material-list.component';
import { InstallComponent } from './install/install.component';
import { InstallListComponent } from './install/install-list/install-list.component';
import { CustomerComponent } from './customer/customer.component';
import { CustomerListComponent } from './customer/customer-list/customer-list.component';
import { UserComponent } from './user/user.component';
import { UserListComponent } from './user/user-list/user-list.component';

@NgModule({
  declarations: [
    AppComponent,
    OrderComponent,
    OrderAddComponent,
    OrderEditComponent,
    LoginComponent,
    NavbarComponent,
    OrderListComponent,
    MaterialComponent,
    MaterialListComponent,
    InstallComponent,
    InstallListComponent,
    CustomerComponent,
    CustomerListComponent,
    UserComponent,
    UserListComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    AppRoutingModule,
    HttpModule,
    DpDatePickerModule
  ],
  providers: [OrderService],
  bootstrap: [AppComponent]
})
export class AppModule { }


